import datetime

date = "20220102"
print(type(date))
input_val = input()

print(type(input_val))
y = int(input_val[0:4])
m = int(input_val[4:6])
d = int(input_val[6:8])
dd = datetime.date(y, m, d)
print(type(dd))
strdd = str(dd)
print(type(strdd))
zz = strdd.replace('-','')
print(zz)
print('------------------------')

print(date)
print(int(date))
date_int = int(date)

print(date[0:4])
y=int(date[0:4]) # 将输入的日期转化为年月日的形式
m=int(date[4:6])
d=int(date[6:])
print(y,m,d)